﻿<?xml version="1.0" encoding="utf-8" ?>
<validation>
  <type assemblyName="WebFormsUtilities.Examples" name="WebFormsUtilities.Examples.Classes.Customer, WebFormsUtilities.Examples">
    <ruleset name="RegisterRules">
      <properties>
        <property name="FirstName">
          <validator negated="false"
                     ErrorMessage="The First Name field cannot be empty."
                     type="RequiredAttribute" />
          <validator negated="false"
                     maximumLength="10"
                     type="StringLengthAttribute" />
        </property>
        <property name="LastName">
          <validator negated="false"
                     type="RequiredAttribute" />
          <validator negated="false"
                     maximumLength="10"
                     type="StringLengthAttribute" />
        </property>
        <property name="Email">
          <validator negated="false"
                     type="WebFormsUtilities.Examples.Functional.CustomValidation.ValidEmailAttribute, WebFormsUtilities.Examples"
                     ErrorMessage="Must be a valid E-mail." />
          <validator negated="false"
                     type="RequiredAttribute" />
        </property>
        <property name="SocialSecurityNumber">
          <validator negated="false"
                     type="RegularExpressionAttribute"
                     ErrorMessage="Must be a valid SSN (xxx-xx-xxxx)"
                     pattern="^((?!000)([0-6]\d{2}|[0-7]{2}[0-2]))-((?!00)\d{2})-((?!0000)\d{4})$" />
        </property>
        <property name="Address.Address1">
          <validator negated="false"
                     type="RequiredAttribute" />
        </property>
        <property name="Address.City">
          <validator negated="false"
                     type="RequiredAttribute" />
        </property>
        <property name="Address.State">
          <validator negated="false"
                     type="RequiredAttribute" />
        </property>
        <property name="Login.UserName">
          <validator negated="false"
                     type="RequiredAttribute" />
        </property>
        <property name="Login.Password">
          <validator negated="false"
                     type="RequiredAttribute" />
        </property>
        <property name="Login.ConfirmPassword">
          <validator negated="false"
                     type="RequiredAttribute" />
          <validator negated="false"
                     type="WebFormsUtilities.Examples.Functional.CustomValidation.PasswordMustMatchAttribute, WebFormsUtilities.Examples" />
        </property>
      </properties>
    </ruleset>
  </type>
</validation>